package com.corpgovernment.common.base;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ：xks
 * @date ：Created in 2022/7/20 10:42
 * @description：
 * @modified By：
 * @version: $
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ResourceInfo {

    /**
     *  角色  部门数据资源权限
     */
    private List<DeptInfo> deptInfos;

    /**
     *  角色  菜单数据资源权限
     */
    private List<PermissionInfo> permissionInfos;

    /**
     *  开票  数据资源权限
     */
    private List<DeptInfo> invoiceInfos;



    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class DeptInfo {
        private Long id;

        private String orgId;

        private String orgType;

        private String parentId;
    }

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PermissionInfo {

        private Long id;

        private String key;

        private String path;
    }
}
